#include <iostream>

using namespace std;

class Solution {
public:
    uint32_t reverseBits(uint32_t n) {
        return
        (0b10000000000000000000000000000000 & n) >> 31 |
        (0b01000000000000000000000000000000 & n) >> 29 |
        (0b00100000000000000000000000000000 & n) >> 27 |
        (0b00010000000000000000000000000000 & n) >> 25 |
        (0b00001000000000000000000000000000 & n) >> 23 |
        (0b00000100000000000000000000000000 & n) >> 21 |
        (0b00000010000000000000000000000000 & n) >> 19 |
        (0b00000001000000000000000000000000 & n) >> 17 |
        (0b00000000100000000000000000000000 & n) >> 15 |
        (0b00000000010000000000000000000000 & n) >> 13 |
        (0b00000000001000000000000000000000 & n) >> 11 |
        (0b00000000000100000000000000000000 & n) >> 9 |
        (0b00000000000010000000000000000000 & n) >> 7 |
        (0b00000000000001000000000000000000 & n) >> 5 |
        (0b00000000000000100000000000000000 & n) >> 3 |
        (0b00000000000000010000000000000000 & n) >> 1 |
        (0b00000000000000001000000000000000 & n) << 1 |
        (0b00000000000000000100000000000000 & n) << 3 |
        (0b00000000000000000010000000000000 & n) << 5 |
        (0b00000000000000000001000000000000 & n) << 7 |
        (0b00000000000000000000100000000000 & n) << 9 |
        (0b00000000000000000000010000000000 & n) << 11 |
        (0b00000000000000000000001000000000 & n) << 13 |
        (0b00000000000000000000000100000000 & n) << 15 |
        (0b00000000000000000000000010000000 & n) << 17 |
        (0b00000000000000000000000001000000 & n) << 19 |
        (0b00000000000000000000000000100000 & n) << 21 |
        (0b00000000000000000000000000010000 & n) << 23 |
        (0b00000000000000000000000000001000 & n) << 25 |
        (0b00000000000000000000000000000100 & n) << 27 |
        (0b00000000000000000000000000000010 & n) << 29 |
        (0b00000000000000000000000000000001 & n) << 31;
    }
};

int main() {
    Solution solution;
    int output = solution.reverseBits(43261596);
    cout << output << endl;
    return 0;
}